home *** CD-ROM | disk | FTP | other *** search
/ The Atari Compendium / The Atari Compendium (Toad Computers) (1994).iso / files / umich / utils / unixt~3h / unixtkit.arc / man.arc / UNIQ.MAN < prev    next >
Text File  |  1988-03-28  |  1KB  |  67 lines

  1.  
  2.  
  3.  
  4.         UNIQ                  ST-UNIX User's Manual                  UNIQ
  5.  
  6.  
  7.  
  8.         COMMAND
  9.              uniq - display duplicate lines in a file.
  10.  
  11.         FORMAT
  12.              uniq [ -udc [ +n ] [ -n ] ] [ input [ output ] ]
  13.  
  14.         DESCRIPTION
  15.              _✓U_✓n_✓i_✓q reads the input file (defaul standard input), comparing
  16.              adjacent  lines.   Normally the second and succeeding copies
  17.              of repeated lines are removed with the rest written  to  the
  18.              output file  (default standard output).  Repeated lines must
  19.              be adjacent in order to be found.  The -u option causes just
  20.              the  unrepeated  lines  to  be output.  The -d option causes
  21.              just one copy of the repeated lines be output.  The  default
  22.              action is -ud
  23.  
  24.              The -c option over-rides -u and -d generating output in  the
  25.              default  format  with each line labelled with a count of the
  26.              number of times it occurred.
  27.  
  28.              The -_✓n argument causes the first n fields of the line to  be
  29.              skipped  before  comparison  starts.  The +_✓n argument causes
  30.              the first n characters of the field  to  be  skipped,  where
  31.              fields  are  skipped  first.   Fields  are  defined as being
  32.              separated by white space.
  33.  
  34.  
  35.  
  36.  
  37.  
  38.  
  39.  
  40.  
  41.  
  42.  
  43.  
  44.  
  45.  
  46.  
  47.  
  48.  
  49.  
  50.  
  51.  
  52.  
  53.  
  54.  
  55.  
  56.  
  57.  
  58.  
  59.  
  60.  
  61.  
  62.  
  63.         Printed 28/March/1988     30 March 1987                         1
  64.  
  65.  
  66.  
  67.